﻿@model IList<TuanAnhPersonalWeb.Models.PositionModel>

@{
    ViewBag.Title = "Index";
    Layout = "~/Views/Shared/_AdminLayout.cshtml";
}

<h2>Index</h2>

<p>
    @Html.ActionLink("Create New", "Create")
</p>
<table>
    <tr>
        <th>
           Tên Phòng Ban
        </th>
        <th>
        Số lượng NV
        </th>
        <th>
            Tên Trưởng Phòng
        </th>
        <th></th>
    </tr>

@foreach (var item in Model) {
    <tr>
        <td>
            @Html.DisplayFor(modelItem => item.POS_DES)
        </td>
        <td>
        @Html.DisplayFor(modelitem=>item.Number)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.LEADER_NAME)
        </td>
        <td>
            @Html.ActionLink("Edit", "Edit", new { id=item.POS_ID }) |
            @Html.ActionLink("Delete", "Delete", new { id=item.POS_ID })
        </td>
    </tr>
}

</table>
